package ua.org.nuos.sdms.middle.util.exception;

import java.util.Set;

/**
 * Created with IntelliJ IDEA.
 * User: dio
 * Date: 9/1/12
 * Time: 8:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class ExtendedIllegalArgumentException extends IllegalArgumentException {

    private Set errorSet;

    public ExtendedIllegalArgumentException(Set errorSet) {
        this.errorSet = errorSet;
    }

    public ExtendedIllegalArgumentException(String s, Set errorSet) {
        super(s);
        this.errorSet = errorSet;
    }

    public ExtendedIllegalArgumentException(String message, Throwable cause, Set errorSet) {
        super(message, cause);
        this.errorSet = errorSet;
    }

    public ExtendedIllegalArgumentException(Throwable cause, Set errorSet) {
        super(cause);
        this.errorSet = errorSet;
    }

    public Set getErrorSet() {
        return errorSet;
    }
}
